//
//  News.swift
//  HttpStydu
//
//  Created by yongkang on 2017/8/11.
//  Copyright © 2017年 sheng. All rights reserved.
//

import ObjectMapper

class News: Mappable {
    
    var newsId:Int?
    var newsTitle: String?
    var newsLink: String?
    var pubTime: String?
    var webLink: String?
    var isSpread :Int?
    var newsType :Int?
    var newsCategory: String?
    var newsCreateTime: String?
    var newsImage: String?
    var commentCount:Int?
    
    required init?(map: Map){
        
    }
    
    func mapping(map: Map) {
        newsId <- map["newsId"]
        newsTitle <- map["newsTitle"]
        newsLink <- map["newsLink"]
        pubTime <- map["pubTime"]
        webLink <- map["webLink"]
        isSpread <- map["isSpread"]
        newsType <- map["newsType"]
        newsCategory <- map["newsCategory"]
        newsCreateTime <- map["newsCreateTime"]
        newsImage <- map["newsImage"]
        commentCount <- map["commentCount"]
    }
}
